package com.qfedu.common;

/**
 * @Author 刘浩
 * @Date 2020/8/11 20:47
 */
public class JsonResult {
    private int code;//1代表正常  2 代表异常
    private Object info;//返回给前端的数据

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getInfo() {
        return info;
    }

    public void setInfo(Object info) {
        this.info = info;
    }

    public JsonResult(int code, Object info) {
        this.code = code;
        this.info = info;
    }

    public JsonResult() {
    }
}
